package com.example.meterialproject.activitys.transition

import android.os.Bundle
import com.example.meterialproject.activitys.transition.demo1.TransitionDemo1Activity
import com.example.meterialproject.activitys.transition.demo2.TransitionDemoForm2Activity
import com.example.meterialproject.activitys.transition.demo3.TransitionDemoForm3Activity
import com.example.meterialproject.activitys.transition.demo4.TransitionDemo4Activity
import com.example.meterialproject.activitys.transition.demo5.TransitionDemo5Activity
import com.example.meterialproject.activitys.transition.demo6.TransitionDemo6Activity
import com.example.meterialproject.activitys.transition.demo7.TransitionDemo7Activity
import com.example.meterialproject.base.BaseActivity
import com.example.meterialproject.databinding.ActivityTransitionBinding
import com.example.meterialproject.exts.click
import com.example.meterialproject.exts.jumpActivity
/**
 *
 * @ClassName: TransitionActivity
 * @Author: android 超级兵
 * @CreateDate: 4/25/22$ 8:39 PM$
 * TODO 过度动画界面
 */
class TransitionActivity : BaseActivity<ActivityTransitionBinding>() {

    override fun onCreate(savedInstanceState: Bundle?) {
        super.onCreate(savedInstanceState)

        // fragment to fragment
        binding.bt1.click {
            jumpActivity(it, TransitionDemo1Activity::class.java, true)
        }

        // activity to activity
        binding.bt2.click {
            jumpActivity(it, TransitionDemoForm2Activity::class.java, true)
        }

        // view to activity
        binding.bt3.click {
            jumpActivity(it, TransitionDemoForm3Activity::class.java, true)
        }

        // view to view
        binding.bt4.click {
            jumpActivity(it, TransitionDemo4Activity::class.java, true)
        }

        // navigation
        binding.bt5.click {
            jumpActivity(it, TransitionDemo5Activity::class.java, true)
        }

        // navigation2
        binding.bt6.click {
            jumpActivity(it, TransitionDemo6Activity::class.java, true)
        }

        // navigation2
        binding.bt7.click {
            jumpActivity(it, TransitionDemo7Activity::class.java, true)
        }
    }
}